package com.shilei.spring.callback;

import com.shilei.spring.Test;
import com.shilei.spring.callback.i.Callable;
import com.shilei.spring.util.BeanUtil;

import static com.shilei.spring.util.BeanUtil.*;

/**
 * @author 石雷
 * shilei1@jiayuan.com
 * 2021/8/26/026 11:17
 */
public class Callback implements Callable {
    @Override
    public void call() {
        //刷新@value对应的值
        BeanUtil.DI("com.shilei.spring");
        //获取bean打印值
        Test bean = getBean(Test.class);
        String value = bean.getValue();
        System.out.println("##########################文件变化更新值:"+value);
    }
}
